function getLoginForm() {
    const $form = $(`
        <form>
            <div class="login-input mt-160">
                <h1 class="reg-tit">账号密码登录</h1>
                <div class="login-tel mt-60">
                    <i class="iconfont icon-shoujihao"></i>
                    <input name="loginId" type="text"  placeholder="请输入手机号或邮箱"/>
                </div>
                <div class="login-tel m-t-lg">
                      <i class="iconfont icon-mima"></i>
                      <input name="password" type="password"  placeholder="请输入密码"/>
                      <i class="iconfont icon-zhanshimima mima-show" data-btn="eyes"></i>
                </div>
                
                <a data-btn="loginBtn" href="javascript:;" class="login-btn m-t-lg">登录</a>
<!--                <p class="registere m-t-lg">还没有账户？<i data-btn="applyDoctorAccount">申请成为医生</i></p>-->
            </div>
        </form>
        
    `)

    //查看密码按钮
    $form.find('[data-btn="eyes"]').on("click", function () {
        const $pwdInput = $form.find('[name=password]');
        if ($pwdInput.attr("type") === "password") {
            $(this).removeClass("icon-yincangmima").addClass("icon-zhanshimima");
            $form.find('[name=password]').attr("type", "text");
        } else {
            $(this).removeClass("icon-zhanshimima").addClass("icon-yincangmima");
            $form.find('[name=password]').attr("type", "password");
        }
    });

    //登录按钮
    $form.find('[data-btn="loginBtn"]').on("click",()=>{
        const data = $.getFormData($form);
        loginByPassword(data, res => {
            if (res.Code !== 10000) {
                return $.toast(res.Message);
            }

            location.href = "index.html?token=" + res.Result.token;
        });
    })

    return $form;

    function loginByPassword(param, callback = Function()) {
        return $.sApi({
            url: "/Login/loginByPassword",
            data: param
        }, callback)
    }
}